//面向对象编程
//产品对象
module.exports = function Product() {
	//定义变量
	var product_Id; //产品ID
	var product_name; //产品名称
	var old_price; //原价格
	var new_price; //优惠价格
	var product_img; //产品展示主图片
	var product_imglist; //产品展示图片列表
	var product_detail; //产品详细介绍
	var product_amount; //产品库存
	var category_Id; //产品分类ID

	var product_favourable; 
	var product_expressfee;

	this.setId = function(x) {
		product_Id = x;
	}

	this.getId = function() {
		return product_Id;
	}

	this.setpdName = function(x) {
		product_name = x;
	}

	this.getpdName = function() {
		return product_name;
	}

	this.setold_price = function(x) {
		old_price = x;
	}

	this.getold_price = function() {
		return old_price;
	}

	this.setnew_price = function(x) {
		new_price = x;
	}

	this.getnew_price = function() {
		return new_price;
	}

	this.setproduct_img = function(x) {
		product_img = x;
	}

	this.getproduct_img = function() {
		return product_img;
	}

	this.setproduct_detail = function(x) {
		product_detail = x;
	}

	this.getproduct_detail = function() {
		return product_detail;
	}

	this.setproduct_amount = function(x) {
		product_amount = x;
	}

	this.getproduct_amount = function() {
		return product_amount;
	}

	this.setcategory_Id = function(x) {
		category_Id = x;
	}

	this.getcategory_Id = function() {
		return category_Id;
	}

	this.setproduct_imglist = function(x) {
		product_imglist = x;
	}

	this.getproduct_imglist = function() {
		return product_imglist;
	}

	//************
	this.setproduct_favourable = function(x) {
		product_favourable = x;
	}

	this.getproduct_favourable = function() {
		return product_favourable;
	}

	this.setproduct_expressfee = function(x) {
		product_expressfee = x;
	}

	this.getproduct_expressfee = function() {
		return product_expressfee;
	}
}